<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>系统设置 - 转炉终点预测系统</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
    <link rel="stylesheet" href="styles/unified.css">
    <link rel="stylesheet" href="styles/components.css">
    <link rel="stylesheet" href="styles/sidebar-theme.css">
    <link rel="stylesheet" href="styles/scale-fix.css">
    <link rel="stylesheet" href="styles/modal-dialog.css">
</head>
<body>
    <!-- 侧边栏 -->
    <div class="sidebar">
        <div class="sidebar-header">
            <div class="sidebar-logo">
                <i class="fas fa-industry"></i>
            </div>
            <div class="sidebar-title">转炉终点预测系统</div>
        </div>
        <div class="sidebar-menu">
            <div class="sidebar-menu-title">主导航</div>
            <ul>
                <li><a href="index.html"><i class="fas fa-home"></i>首页</a></li>
                
                <li><a href="production-monitor.html"><i class="fas fa-chart-line"></i>生产监控</a></li>
                <li><a href="history-data.html"><i class="fas fa-history"></i>历史数据</a></li>
                <li><a href="quality-analysis.html"><i class="fas fa-flask"></i>质量分析</a></li>
            </ul>
            
            <div class="sidebar-menu-title">模型管理</div>
            <ul>
                <li><a href="model-details.html"><i class="fas fa-brain"></i>模型详情</a></li>
                <li><a href="model-config.html"><i class="fas fa-cogs"></i>模型配置</a></li>
                <li><a href="model-performance.html"><i class="fas fa-chart-bar"></i>模型性能</a></li>
                <li><a href="model-update.html"><i class="fas fa-sync-alt"></i>模型更新</a></li>
            </ul>
            
            <div class="sidebar-menu-title">系统设置</div>
            <ul>
                <li><a href="system-settings.html" class="active"><i class="fas fa-cog"></i>系统设置</a></li>
                <li><a href="#user-management" onclick="showSettingsPanel('user-management'); return false;"><i class="fas fa-user-cog"></i>用户管理</a></li>
                <li><a href="#system-params" onclick="showSettingsPanel('system-params'); return false;"><i class="fas fa-sliders-h"></i>系统参数</a></li>
                <li><a href="#alert-settings" onclick="showSettingsPanel('alert-settings'); return false;"><i class="fas fa-bell"></i>预警设置</a></li>
                <li><a href="#data-management" onclick="showSettingsPanel('data-management'); return false;"><i class="fas fa-database"></i>数据管理</a></li>
                <li><a href="online-analysis.html"><i class="fas fa-chart-bar"></i>在线分析</a></li>
            </ul>
        </div>
        <div class="sidebar-footer">
            <i class="fas fa-info-circle"></i>
            <span>系统版本：v2.5.3</span>
        </div>
    </div>

    <!-- 侧边栏遮罩层 -->
    <div class="sidebar-overlay"></div>

    <div class="container">
        <div class="header">
            <div class="header-left">
                <div>
                    <div class="title">系统设置</div>
                    <div class="subtitle">管理系统参数、用户权限和数据配置</div>
                </div>
            </div>
            <div class="header-right">
                <div class="header-icon">
                    <i class="fas fa-search"></i>
                </div>
                <div class="header-icon">
                    <i class="fas fa-bell"></i>
                    <span class="notification-badge">3</span>
                </div>
                <div class="dropdown">
                    <div class="user-dropdown dropdown-trigger">
                        <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="用户头像" class="user-avatar">
                        <span class="user-name">管理员</span>
                        <i class="fas fa-chevron-down"></i>
                    </div>
                    <div class="dropdown-menu">
                        <a href="#" class="dropdown-item">
                            <i class="fas fa-user"></i>
                            <span>个人资料</span>
                        </a>
                        <a href="#" class="dropdown-item">
                            <i class="fas fa-cog"></i>
                            <span>账号设置</span>
                        </a>
                        <a href="#" class="dropdown-item">
                            <i class="fas fa-question-circle"></i>
                            <span>帮助中心</span>
                        </a>
                        <a href="#" class="dropdown-item">
                            <i class="fas fa-sign-out-alt"></i>
                            <span>退出登录</span>
                        </a>
                    </div>
                </div>
            </div>
        </div>

        <div class="settings-container content-wrapper">
            <!-- 设置页导航 -->
            <div class="settings-nav">
                <a href="#user-management" class="settings-nav-item active" data-target="user-management">
                    <i class="fas fa-user-cog"></i>
                    <span>用户管理</span>
                </a>
                <a href="#system-params" class="settings-nav-item" data-target="system-params">
                    <i class="fas fa-sliders-h"></i>
                    <span>系统参数</span>
                </a>
                <a href="#alert-settings" class="settings-nav-item" data-target="alert-settings">
                    <i class="fas fa-bell"></i>
                    <span>预警设置</span>
                </a>
                <a href="#data-management" class="settings-nav-item" data-target="data-management">
                    <i class="fas fa-database"></i>
                    <span>数据管理</span>
                </a>
            </div>
            
            <!-- 用户管理面板 -->
            <div class="settings-panel active" id="user-management">
                <div class="card">
                    <div class="card-header">
                        <div class="card-title">
                            <i class="fas fa-users"></i>
                            用户列表
                        </div>
                        <button class="btn btn-primary">
                            <i class="fas fa-user-plus"></i>
                            添加用户
                        </button>
                    </div>
                    <div class="card-content">
                        <div class="table-responsive">
                            <table>
                                <thead>
                                    <tr>
                                        <th style="width: 50px;">#</th>
                                        <th style="width: 80px;">头像</th>
                                        <th>用户名</th>
                                        <th>角色</th>
                                        <th>部门</th>
                                        <th>状态</th>
                                        <th>最后登录</th>
                                        <th style="width: 150px;">操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr>
                                        <td>1</td>
                                        <td>
                                            <img src="https://randomuser.me/api/portraits/men/32.jpg" alt="用户头像" class="user-table-avatar">
                                        </td>
                                        <td>admin</td>
                                        <td>系统管理员</td>
                                        <td>信息技术部</td>
                                        <td><span class="status-badge active">活跃</span></td>
                                        <td>2023-11-28 08:32</td>
                                        <td>
                                            <div class="table-actions">
                                                <button class="action-btn" title="编辑">
                                                    <i class="fas fa-edit"></i>
                                                </button>
                                                <button class="action-btn" title="权限">
                                                    <i class="fas fa-key"></i>
                                                </button>
                                                <button class="action-btn" title="删除">
                                                    <i class="fas fa-trash-alt"></i>
                                                </button>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>2</td>
                                        <td>
                                            <img src="https://randomuser.me/api/portraits/women/44.jpg" alt="用户头像" class="user-table-avatar">
                                        </td>
                                        <td>engineer1</td>
                                        <td>工艺工程师</td>
                                        <td>生产技术部</td>
                                        <td><span class="status-badge active">活跃</span></td>
                                        <td>2023-11-27 16:45</td>
                                        <td>
                                            <div class="table-actions">
                                                <button class="action-btn" title="编辑">
                                                    <i class="fas fa-edit"></i>
                                                </button>
                                                <button class="action-btn" title="权限">
                                                    <i class="fas fa-key"></i>
                                                </button>
                                                <button class="action-btn" title="删除">
                                                    <i class="fas fa-trash-alt"></i>
                                                </button>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>3</td>
                                        <td>
                                            <img src="https://randomuser.me/api/portraits/men/67.jpg" alt="用户头像" class="user-table-avatar">
                                        </td>
                                        <td>operator1</td>
                                        <td>操作员</td>
                                        <td>生产车间</td>
                                        <td><span class="status-badge active">活跃</span></td>
                                        <td>2023-11-28 07:12</td>
                                        <td>
                                            <div class="table-actions">
                                                <button class="action-btn" title="编辑">
                                                    <i class="fas fa-edit"></i>
                                                </button>
                                                <button class="action-btn" title="权限">
                                                    <i class="fas fa-key"></i>
                                                </button>
                                                <button class="action-btn" title="删除">
                                                    <i class="fas fa-trash-alt"></i>
                                                </button>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>4</td>
                                        <td>
                                            <img src="https://randomuser.me/api/portraits/women/22.jpg" alt="用户头像" class="user-table-avatar">
                                        </td>
                                        <td>analyst1</td>
                                        <td>数据分析师</td>
                                        <td>质量控制部</td>
                                        <td><span class="status-badge inactive">离线</span></td>
                                        <td>2023-11-25 15:30</td>
                                        <td>
                                            <div class="table-actions">
                                                <button class="action-btn" title="编辑">
                                                    <i class="fas fa-edit"></i>
                                                </button>
                                                <button class="action-btn" title="权限">
                                                    <i class="fas fa-key"></i>
                                                </button>
                                                <button class="action-btn" title="删除">
                                                    <i class="fas fa-trash-alt"></i>
                                                </button>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>5</td>
                                        <td>
                                            <img src="https://randomuser.me/api/portraits/men/54.jpg" alt="用户头像" class="user-table-avatar">
                                        </td>
                                        <td>manager1</td>
                                        <td>部门经理</td>
                                        <td>生产管理部</td>
                                        <td><span class="status-badge active">活跃</span></td>
                                        <td>2023-11-27 10:18</td>
                                        <td>
                                            <div class="table-actions">
                                                <button class="action-btn" title="编辑">
                                                    <i class="fas fa-edit"></i>
                                                </button>
                                                <button class="action-btn" title="权限">
                                                    <i class="fas fa-key"></i>
                                                </button>
                                                <button class="action-btn" title="删除">
                                                    <i class="fas fa-trash-alt"></i>
                                                </button>
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        
                        <div class="pagination">
                            <a href="#" class="pagination-item disabled">
                                <i class="fas fa-chevron-left"></i>
                            </a>
                            <a href="#" class="pagination-item active">1</a>
                            <a href="#" class="pagination-item">2</a>
                            <a href="#" class="pagination-item">3</a>
                            <a href="#" class="pagination-item">
                                <i class="fas fa-chevron-right"></i>
                            </a>
                        </div>
                    </div>
                </div>
                
                <div class="card">
                    <div class="card-header">
                        <div class="card-title">
                            <i class="fas fa-user-shield"></i>
                            角色与权限
                        </div>
                    </div>
                    <div class="card-content">
                        <div class="role-cards">
                            <div class="role-card">
                                <div class="role-card-header">
                                    <div class="role-card-title">系统管理员</div>
                                    <div class="role-card-users">1 用户</div>
                                </div>
                                <div class="role-card-content">
                                    <p>拥有系统所有功能的访问权限，可以管理用户、修改系统配置、查看所有数据。</p>
                                </div>
                                <div class="role-card-footer">
                                    <button class="btn btn-secondary btn-sm">编辑权限</button>
                                </div>
                            </div>
                            
                            <div class="role-card">
                                <div class="role-card-header">
                                    <div class="role-card-title">工艺工程师</div>
                                    <div class="role-card-users">3 用户</div>
                                </div>
                                <div class="role-card-content">
                                    <p>可以访问模型配置、参数调优和工艺分析功能，负责系统的技术维护和优化。</p>
                                </div>
                                <div class="role-card-footer">
                                    <button class="btn btn-secondary btn-sm">编辑权限</button>
                                </div>
                            </div>
                            
                            <div class="role-card">
                                <div class="role-card-header">
                                    <div class="role-card-title">操作员</div>
                                    <div class="role-card-users">8 用户</div>
                                </div>
                                <div class="role-card-content">
                                    <p>主要负责日常生产监控和数据录入，可以查看仪表盘和基础报表。</p>
                                </div>
                                <div class="role-card-footer">
                                    <button class="btn btn-secondary btn-sm">编辑权限</button>
                                </div>
                            </div>
                            
                            <div class="role-card">
                                <div class="role-card-header">
                                    <div class="role-card-title">部门经理</div>
                                    <div class="role-card-users">2 用户</div>
                                </div>
                                <div class="role-card-content">
                                    <p>可以查看所有数据和报表，但没有系统配置权限，主要用于决策支持。</p>
                                </div>
                                <div class="role-card-footer">
                                    <button class="btn btn-secondary btn-sm">编辑权限</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- 系统参数面板 -->
            <div class="settings-panel" id="system-params">
                <div class="card">
                    <div class="card-header">
                        <div class="card-title">
                            <i class="fas fa-sliders-h"></i>
                            基本参数
                        </div>
                        <button class="btn btn-secondary">
                            <i class="fas fa-undo"></i>
                            恢复默认
                        </button>
                    </div>
                    <div class="card-content">
                        <div class="param-group">
                            <div class="param-title">系统配置</div>
                            <div class="param-items">
                                <div class="param-item">
                                    <div class="param-label">系统名称</div>
                                    <div class="param-control">
                                        <input type="text" class="form-control" value="转炉终点预测系统">
                                    </div>
                                </div>
                                <div class="param-item">
                                    <div class="param-label">系统描述</div>
                                    <div class="param-control">
                                        <textarea class="form-control">基于深度学习的智能冶炼辅助系统，用于预测转炉终点温度、成分和时间。</textarea>
                                    </div>
                                </div>
                                <div class="param-item">
                                    <div class="param-label">登录超时（分钟）</div>
                                    <div class="param-control">
                                        <input type="number" class="form-control" value="30">
                                    </div>
                                </div>
                                <div class="param-item">
                                    <div class="param-label">启用操作日志</div>
                                    <div class="param-control">
                                        <label class="switch">
                                            <input type="checkbox" checked>
                                            <span class="slider round"></span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="param-group">
                            <div class="param-title">数据采集</div>
                            <div class="param-items">
                                <div class="param-item">
                                    <div class="param-label">采集间隔（秒）</div>
                                    <div class="param-control">
                                        <input type="number" class="form-control" value="5">
                                    </div>
                                </div>
                                <div class="param-item">
                                    <div class="param-label">数据缓存时间（天）</div>
                                    <div class="param-control">
                                        <input type="number" class="form-control" value="30">
                                    </div>
                                </div>
                                <div class="param-item">
                                    <div class="param-label">启用异常自动过滤</div>
                                    <div class="param-control">
                                        <label class="switch">
                                            <input type="checkbox" checked>
                                            <span class="slider round"></span>
                                        </label>
                                    </div>
                                </div>
                                <div class="param-item">
                                    <div class="param-label">异常过滤阈值</div>
                                    <div class="param-control">
                                        <input type="number" class="form-control" value="3.5" step="0.1">
                                    </div>
                                </div>
                            </div>
                        </div>
                        
                        <div class="param-group">
                            <div class="param-title">模型设置</div>
                            <div class="param-items">
                                <div class="param-item">
                                    <div class="param-label">模型更新频率</div>
                                    <div class="param-control">
                                        <select class="form-control">
                                            <option>每天</option>
                                            <option selected>每周</option>
                                            <option>每月</option>
                                            <option>手动</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="param-item">
                                    <div class="param-label">更新时间</div>
                                    <div class="param-control">
                                        <input type="time" class="form-control" value="03:00">
                                    </div>
                                </div>
                                <div class="param-item">
                                    <div class="param-label">模型参数备份</div>
                                    <div class="param-control">
                                        <label class="switch">
                                            <input type="checkbox" checked>
                                            <span class="slider round"></span>
                                        </label>
                                    </div>
                                </div>
                                <div class="param-item">
                                    <div class="param-label">保留历史版本数</div>
                                    <div class="param-control">
                                        <input type="number" class="form-control" value="5">
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="card-footer">
                        <button class="btn btn-primary">
                            <i class="fas fa-save"></i>
                            保存设置
                        </button>
                        <button class="btn btn-secondary">
                            <i class="fas fa-times"></i>
                            取消
                        </button>
                    </div>
                </div>
                
                <div class="card">
                    <div class="card-header">
                        <div class="card-title">
                            <i class="fas fa-desktop"></i>
                            界面设置
                        </div>
                    </div>
                    <div class="card-content">
                        <div class="param-group">
                            <div class="param-title">显示选项</div>
                            <div class="param-items">
                                <div class="param-item">
                                    <div class="param-label">主题</div>
                                    <div class="param-control">
                                        <div class="theme-selector">
                                            <div class="theme-option active" data-theme="light">
                                                <div class="theme-preview light-theme"></div>
                                                <div class="theme-name">浅色</div>
                                            </div>
                                            <div class="theme-option" data-theme="dark">
                                                <div class="theme-preview dark-theme"></div>
                                                <div class="theme-name">深色</div>
                                            </div>
                                            <div class="theme-option" data-theme="blue">
                                                <div class="theme-preview blue-theme"></div>
                                                <div class="theme-name">蓝色</div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="param-item">
                                    <div class="param-label">默认首页</div>
                                    <div class="param-control">
                                        <select class="form-control">
                                            <option selected>首页</option>
                                            <option>控制面板</option>
                                            <option>生产监控</option>
                                            <option>模型详情</option>
                                        </select>
                                    </div>
                                </div>
                                <div class="param-item">
                                    <div class="param-label">数据刷新频率（秒）</div>
                                    <div class="param-control">
                                        <input type="number" class="form-control" value="10">
                                    </div>
                                </div>
                                <div class="param-item">
                                    <div class="param-label">启用动画效果</div>
                                    <div class="param-control">
                                        <label class="switch">
                                            <input type="checkbox" checked>
                                            <span class="slider round"></span>
                                        </label>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="card-footer">
                        <button class="btn btn-primary">
                            <i class="fas fa-save"></i>
                            保存设置
                        </button>
                        <button class="btn btn-secondary">
                            <i class="fas fa-times"></i>
                            取消
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- JavaScript引用 -->
    <script src="scripts/unified.js"></script>
    <script src="scripts/modal-dialog.js"></script>
    <script>
        // 设置页面切换脚本
        document.addEventListener('DOMContentLoaded', function() {
            const navItems = document.querySelectorAll('.settings-nav-item');
            const panels = document.querySelectorAll('.settings-panel');
            
            navItems.forEach(item => {
                item.addEventListener('click', function(e) {
                    e.preventDefault();
                    
                    const targetId = this.getAttribute('data-target');
                    
                    // 移除所有激活状态
                    navItems.forEach(nav => nav.classList.remove('active'));
                    panels.forEach(panel => panel.classList.remove('active'));
                    
                    // 添加当前项的激活状态
                    this.classList.add('active');
                    document.getElementById(targetId).classList.add('active');
                });
            });
        });

        // 导航面板切换函数
        function showSettingsPanel(panelId) {
            // 模拟点击设置导航项
            const navItem = document.querySelector(`.settings-nav-item[data-target="${panelId}"]`);
            if (navItem) {
                navItem.click();
            }
        }
    </script>

    <style>
        /* 系统设置特有样式 */
        .settings-container {
            padding: 20px;
        }
        
        .settings-nav {
            display: flex;
            background-color: white;
            border-radius: var(--radius);
            box-shadow: var(--shadow-sm);
            margin-bottom: 30px;
            overflow-x: auto;
        }
        
        .settings-nav-item {
            display: flex;
            align-items: center;
            padding: 15px 20px;
            color: var(--gray);
            text-decoration: none;
            white-space: nowrap;
            transition: all 0.3s;
            border-bottom: 3px solid transparent;
        }
        
        .settings-nav-item i {
            margin-right: 10px;
            font-size: 16px;
        }
        
        .settings-nav-item:hover {
            color: var(--primary);
            background-color: rgba(0, 0, 0, 0.02);
        }
        
        .settings-nav-item.active {
            color: var(--primary);
            border-bottom: 3px solid var(--primary);
            font-weight: 500;
        }
        
        /* 用户管理样式 */
        .settings-panel {
            display: none;
        }
        
        .settings-panel.active {
            display: block;
        }
        
        .table-responsive {
            overflow-x: auto;
        }
        
        .user-table-avatar {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            object-fit: cover;
        }
        
        .status-badge {
            display: inline-block;
            padding: 4px 8px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 500;
        }
        
        .status-badge.active {
            background-color: rgba(76, 175, 80, 0.1);
            color: var(--success-color);
        }
        
        .status-badge.inactive {
            background-color: rgba(158, 158, 158, 0.1);
            color: var(--gray);
        }
        
        .table-actions {
            display: flex;
            gap: 8px;
        }
        
        .action-btn {
            width: 28px;
            height: 28px;
            border-radius: var(--radius-sm);
            background-color: rgba(0, 0, 0, 0.05);
            border: none;
            color: var(--gray);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
        }
        
        .action-btn:hover {
            background-color: var(--primary);
            color: white;
        }
        
        .pagination {
            display: flex;
            justify-content: center;
            gap: 5px;
            margin-top: 20px;
        }
        
        .pagination-item {
            width: 36px;
            height: 36px;
            border-radius: var(--radius-sm);
            background-color: white;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: var(--text-color);
            border: 1px solid rgba(0, 0, 0, 0.1);
            transition: all 0.2s;
        }
        
        .pagination-item:hover {
            background-color: rgba(0, 0, 0, 0.05);
        }
        
        .pagination-item.active {
            background-color: var(--primary);
            color: white;
            border-color: var(--primary);
        }
        
        .pagination-item.disabled {
            opacity: 0.5;
            pointer-events: none;
        }
        
        /* 角色卡片 */
        .role-cards {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
            gap: 20px;
        }
        
        .role-card {
            background-color: white;
            border-radius: var(--radius);
            border: 1px solid rgba(0, 0, 0, 0.1);
            overflow: hidden;
        }
        
        .role-card-header {
            padding: 15px;
            background-color: rgba(0, 0, 0, 0.02);
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .role-card-title {
            font-weight: 500;
            color: var(--primary-dark);
        }
        
        .role-card-users {
            font-size: 12px;
            color: var(--gray);
        }
        
        .role-card-content {
            padding: 15px;
            min-height: 80px;
        }
        
        .role-card-content p {
            margin: 0;
            font-size: 13px;
            color: var(--gray-dark);
        }
        
        .role-card-footer {
            padding: 15px;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            display: flex;
            justify-content: flex-end;
        }
        
        @media (max-width: 768px) {
            .settings-nav {
                flex-wrap: nowrap;
                overflow-x: auto;
            }
            
            .settings-nav-item {
                flex: 0 0 auto;
            }
            
            .role-cards {
                grid-template-columns: 1fr;
            }
        }
        
        /* 系统参数样式 */
        .param-group {
            margin-bottom: 30px;
        }
        
        .param-title {
            font-weight: 600;
            color: var(--primary-dark);
            margin-bottom: 15px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        }
        
        .param-items {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
            gap: 20px;
        }
        
        .param-item {
            display: flex;
            align-items: center;
        }
        
        .param-label {
            flex: 0 0 150px;
            font-weight: 500;
        }
        
        .param-control {
            flex: 1;
        }
        
        .form-control {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: var(--radius-sm);
            outline: none;
            transition: all 0.2s;
        }
        
        .form-control:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
        }
        
        textarea.form-control {
            min-height: 80px;
            resize: vertical;
        }
        
        .switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }
        
        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #ccc;
            transition: .4s;
        }
        
        .slider:before {
            position: absolute;
            content: "";
            height: 16px;
            width: 16px;
            left: 4px;
            bottom: 4px;
            background-color: white;
            transition: .4s;
        }
        
        input:checked + .slider {
            background-color: var(--primary);
        }
        
        input:focus + .slider {
            box-shadow: 0 0 1px var(--primary);
        }
        
        input:checked + .slider:before {
            transform: translateX(26px);
        }
        
        .slider.round {
            border-radius: 24px;
        }
        
        .slider.round:before {
            border-radius: 50%;
        }
        
        .card-footer {
            padding: 16px 20px;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
            display: flex;
            justify-content: flex-end;
            gap: 10px;
        }
        
        /* 主题选择器 */
        .theme-selector {
            display: flex;
            gap: 15px;
        }
        
        .theme-option {
            display: flex;
            flex-direction: column;
            align-items: center;
            cursor: pointer;
        }
        
        .theme-preview {
            width: 80px;
            height: 50px;
            border-radius: var(--radius-sm);
            border: 2px solid transparent;
            overflow: hidden;
            margin-bottom: 8px;
            position: relative;
        }
        
        .theme-option.active .theme-preview {
            border-color: var(--primary);
        }
        
        .light-theme {
            background-color: #f8f9fa;
        }
        
        .light-theme:before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 25%;
            height: 100%;
            background-color: #343a40;
        }
        
        .dark-theme {
            background-color: #343a40;
        }
        
        .dark-theme:before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 25%;
            height: 100%;
            background-color: #212529;
        }
        
        .blue-theme {
            background-color: #eef5ff;
        }
        
        .blue-theme:before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            width: 25%;
            height: 100%;
            background-color: #1976d2;
        }
        
        .theme-name {
            font-size: 12px;
            color: var(--gray);
        }
        
        .theme-option.active .theme-name {
            color: var(--primary);
            font-weight: 500;
        }
        
        @media (max-width: 768px) {
            .param-items {
                grid-template-columns: 1fr;
            }
            
            .param-item {
                flex-direction: column;
                align-items: flex-start;
            }
            
            .param-label {
                flex: 0 0 auto;
                margin-bottom: 8px;
            }
            
            .param-control {
                width: 100%;
            }
        }
    </style>
</body>
</html>